<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../../vue.global.js"></script>
</head>
<body>
    <div id="conditional-rendering">
        <!-- v-if对应的值为false时 span不渲染  -->
        <span v-if="seen">现在你看到我了</span>
    </div>
    <script>
        const ConditionalRendering = {
            data() {
                return {
                    seen: true//0 undefined null "" false 为falsy 余众皆为truthy
                }
            }
        }

        Vue.createApp(ConditionalRendering).mount('#conditional-rendering')
    </script>
</body>
</html>